package com.xxr.mom.ci.common.util;

import cn.hutool.http.HttpRequest;

/**
 * http 请求工具类
 * @author natsuki_kining
 */
public class HttpUtil {

    public static String post(String url, String data) {
        return HttpRequest
                .post(url)
                .body(data)
                .execute()
                .body();
    }
    public static String post(String url, String data, String token) {
        return HttpRequest
                .post(url)
                .body(data)
                .header("Authorization", Constant.RedisKey.BEARER + token)
                .execute()
                .body();
    }


}
